package lk.icta.core.service;

import lk.icta.common.entity.Person;
import lk.icta.user.entity.User;

/**
 * @author Duminda Dharmakeerthi
 */
public interface PersonManagementService {

    /**
     * Adding a Person
     *
     * @param person The person to be added
     * @param user   The user requesting to add the person
     */
    public void addPerson(Person person, User user);

    /**
     * Updating a person
     *
     * @param person The person to be updated
     * @param user   The user requesting to update the person
     */
    public void updatePerson(Person person, User user);

    /**
     * get  a Person by person id
     *
     * @param id   The id of Person
     * @param user The user requesting to add the Land Application
     */
    public Person getPersonByIdUKey(long id, User user);
}
